#pragma once

#include "object.h"

#include <windows.h>
#include <GL/gl.h>

class paddle;
class score;

class ball: public object {
     GLuint texture;
     float velocity[2];
     float position[2];
     float field[2];
	paddle * player[2];
	score * player_score[2];

public:
     ball(
		const char * image, 
		float * field, 
		paddle * player1, 
		score * score1,
		paddle * player2,
		score * score2);

     ~ball();
	void reset();
     void update(float time);
     void draw();
};
